package com.coco.controller;

import com.coco.service.PusherService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Title:PushController.java
 * Description:发送消息控制类
 * Author：CoCo
 * Date:2024/9/19
 * Version:1.0
 */
@RestController
public class PushController {

    @Resource
    PusherService pusherService;

    @GetMapping("/push")
    public void getContactPerson() {
        pusherService.pushMorningGreeting();
    }
}
